package com.alice.item;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * item-service启动类
 * Created by caoxuel on 2020/9/22 11:48
 */
@SpringBootApplication
@MapperScan("com.alice.item.mapper")
@ComponentScan("com.alice")
@EnableDiscoveryClient // 开启Eureka客户端发现功能
public class ItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemApplication.class,args);
    }
}
